<style rel="stylesheet/scss" lang="scss" >
.pro-gzq-home-log{
  background: #ffffff;
  .content-box{
    .day-box{
      border-width:0;
    }
      // border: 1px solid #e4e4e4;
  }
}
</style>
<template>
    <div class="pro-gzq-home-log">
        <div class="empty-box" v-show="!visible"  @click="setVisible(true)">
            <i class="jeicon jeicon-signing"></i> 
            <span v-if="lang=='zh_CN'">提交日志...</span>
            <span v-else>Commit log...</span>
        </div>
        <div class="content-box" v-show="visible">
          <log-record></log-record>
        </div>
    </div>
</template>

<script>
import Cookies from 'js-cookie';
import LogRecord from '../log/record.vue';
export default {
  components:{LogRecord},
  props:{
      visible:{
          type:Boolean,
          default:false
      }
  },
  data() {
    return {
      visible:this.visible,
      lang: 'zh_CN',
    };
  },
  mounted() {
    if (Cookies.get('je-local-lang')) {
      this.lang = Cookies.get('je-local-lang');
    }
  },
  methods: {
    setVisible(visible){
      this.$emit('setVisible',visible);
    }
  }
};
</script>

